//
//  ZODDocCacheInfo.m
//  ZTEOnlineDoc
//
//  Created by 万伟琦 on 2018/9/11.
//  Copyright © 2018年 ZTE. All rights reserved.
//

#import "ZODDocCacheInfo.h"

@implementation ZODDocCacheInfo


- (instancetype)init {
    if (self = [super init]) {
        _cachedPages = [NSMutableArray array];
        _pageContents = [NSMutableDictionary dictionary];
    }
    return self;
}

- (NSString *)description {
    NSString *desc = [NSString stringWithFormat:@
                                                 "docID:%@\n"
                                                 "totalPages:%@\n"
                                                 "cachedPages:%@\n"
                                                 "pageContentsLength:%ld\n", self.docID, self.totalPages, self.cachedPages, self.pageContents.allKeys.count];
    return desc;
}

@end
